﻿@using Atacadao.Comum.Pesquisa;
@{
    CampoPesquisa atributoPesquisa = Atacadao.Web.Metadata.MetaDados.RecuperarAtributos<CampoPesquisa>(this.ViewData);
}
<input type="text" id="@string.Format("txt_D_{0}", ViewData.TemplateInfo.HtmlFieldPrefix)" pai="@ViewData.TemplateInfo.HtmlFieldPrefix" parte="D" class = "texto textoData" onblur = "validarData(this)"  />
<input type="text" id="@string.Format("txt_H_{0}", ViewData.TemplateInfo.HtmlFieldPrefix )" pai="@ViewData.TemplateInfo.HtmlFieldPrefix" parte="H" maxlength="5" class = "texto textoHora" />
<input type="hidden" id="@ViewData.TemplateInfo.HtmlFieldPrefix" name="@ViewData.TemplateInfo.HtmlFieldPrefix" />
@if (atributoPesquisa != null)
{    
    <input type="hidden" value="@atributoPesquisa.TipoPesquisa|@atributoPesquisa.Campo|@atributoPesquisa.Campo2|" id="@("p_hd" + ViewData.TemplateInfo.HtmlFieldPrefix)" name="@("p_hd" + ViewData.TemplateInfo.HtmlFieldPrefix)"/>
}